package com.xyy.saas.payment.dao.mapper;

import com.xyy.saas.payment.dao.model.OpenpayInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OpenpayInfoMapper {
    int insert(OpenpayInfo record);

    int updateByPrimaryKeySelective(OpenpayInfo record);

    List<OpenpayInfo> queryUserInfoByAccountId(@Param("accountId") String accountId, @Param("thirdUserInfoId") Long thirdUserInfoId);

    List<OpenpayInfo> queryByStatus(@Param("status") Integer status, @Param("offset") Integer offset, @Param("limit") Integer limit);

    int updateStatusByPowerId(OpenpayInfo record);

    int updateStatusWhereOpening(OpenpayInfo record);
}